#include <iostream>

using namespace std;

void print_chars(char c, int x)
{
	for(int i=0;i<x;i++)
		cout << c;
}

int main(int argc, char *argv[])
{
	int num;
	cout << "Enter an odd number" << endl;
	cin >> num;
	for(int i=num;i>=1;i-=2)
	{
		print_chars(' ',(num-i)/2);
		print_chars('*',i);
		cout << endl;
	}
	for(int i=1;i<=num;i+=2)
	{
		print_chars(' ',(num-i)/2);
		print_chars('*',i);
		cout << endl;
	}

	return 0;
}
